cmake_minimum_required(VERSION 2.8.3)
project(robovie_x_lab3)

find_package(Eigen REQUIRED)
include_directories(${EIGEN_INCLUDE_DIRS})
add_definitions(${EIGEN_DEFINITIONS})

find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
add_definitions(${PCL_DEFINITIONS})
link_directories(${PCL_LIBRARY_DIRS})

find_package(catkin REQUIRED COMPONENTS tf roscpp nxt_ros geometry_msgs)

catkin_package(
  CATKIN_DEPENDS roscpp roslib sensor_msgs
)

# nodo per il centro di massa

include_directories(include/com
  ${catkin_INCLUDE_DIRS}
)

add_library(com
 src/com/com.cpp
)
target_link_libraries(com ${catkin_LIBRARIES})

# nodo per il filtraggio

add_executable(filtering
  src/filtering.cpp
)

target_link_libraries(filtering
  ${catkin_LIBRARIES}
  ${PCL_LIBRARIES}
  com
)
